#工作台合成
execute as @e[tag=fisland_craftingtable] unless entity @s[tag=fisland_crafting] at @s unless block ~ ~ ~ minecraft:barrel{Items:[{Slot:9b,tag:{tag:{id:"fisland:magic_plate"}}}]} run function aop_crafting:craft
execute as @e[tag=fisland_craftingtable] if entity @s[tag=fisland_crafting] at @s unless block ~ ~ ~ minecraft:barrel{Items:[{Slot:16b}]} run tag @s remove fisland_crafting
#清除玩家身上不应该有的物品
clear @a #aop_crafting:clear{tag:{isTemp:1b}}
clear @a light_blue_dye{tag:{id:"fisland:index"}}
#保证工作台界面正常
execute as @e[tag=fisland_craftingtable] at @s run function aop_crafting:gui
#合成空岛工作台
execute as @e[type=item,nbt={Item:{id:"minecraft:crafting_table",Count:1b}}] at @s if entity @e[type=item,distance=..1,nbt={Item:{id:"minecraft:iron_ingot",Count:1b}}] run function aop_crafting:crafting_table